package com.deer.wms.base.system.service.check.impl;

import com.deer.wms.base.system.dao.check.BoxItemCheckMapper;
import com.deer.wms.base.system.model.check.BoxItemCheck;
import com.deer.wms.base.system.model.check.BoxItemCheckDetail;
import com.deer.wms.base.system.model.check.CheckDetailDto;
import com.deer.wms.base.system.model.check.CheckDto;
import com.deer.wms.base.system.model.zh.WorkTasks;
import com.deer.wms.base.system.service.check.BoxItemCheckDetailService;
import com.deer.wms.base.system.service.check.BoxItemCheckService;
import com.deer.wms.common.core.service.AbstractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BoxItemCheckServiceImpl  extends AbstractService<BoxItemCheck,Integer> implements BoxItemCheckService {
    @Autowired
    BoxItemCheckMapper boxItemCheckMapper;

    @Override
    public List<BoxItemCheck> selectall(BoxItemCheck boxItemCheck) {
        return boxItemCheckMapper.selectall(boxItemCheck);
    }

    @Override
    public List<BoxItemCheck> selectallPda(BoxItemCheck boxItemCheck) {
        return boxItemCheckMapper.selectallPda(boxItemCheck);
    }

    @Override
    public void insertBoxItemCheck(BoxItemCheck boxItemCheck) {
        boxItemCheckMapper.insertBoxItemCheck(boxItemCheck);
    }

    @Override
    public BoxItemCheckDetail findCheckDetailById(Integer boxId) {
        return boxItemCheckMapper.findCheckDetailById(boxId);
    }

    @Override
    public int blockedBoxItem(BoxItemCheckDetail boxItemCheckDetail) {
        return boxItemCheckMapper.blockedBoxItem(boxItemCheckDetail);
    }

    @Override
    public List<BoxItemCheckDetail> findCheckDetailListById(Integer id) {
        return boxItemCheckMapper.findCheckDetailListById(id);
    }

    @Override
    public List<BoxItemCheckDetail> findCheckDetalBybatch(WorkTasks workTask) {
        return boxItemCheckMapper.findCheckDetalBybatch(workTask);
    }

    @Override
    public void updateCheck(BoxItemCheckDetail boxItemCheckDetail) {
        boxItemCheckMapper.updateCheck(boxItemCheckDetail);
    }

    @Override
    public int findCheckOverSum(Integer boxItemCheckId) {
        return boxItemCheckMapper.findCheckOverSum(boxItemCheckId);
    }

    @Override
    public void updateCheckDetailGo(Integer boxItemCheckId) {
        boxItemCheckMapper.updateCheckDetailGo(boxItemCheckId);
    }

    @Override
    public void updateCheckDetailOver(Integer boxItemCheckId) {
        boxItemCheckMapper.updateCheckDetailOver(boxItemCheckId);
    }

    @Override
    public BoxItemCheckDetail selectCheckState(String cellCode) {
        return boxItemCheckMapper.selectCheckState(cellCode);
    }

    @Override
    public int findCheckState() {
        return boxItemCheckMapper.findCheckState();
    }


}
